Skip to content

103 task add Stroke model#120

Merged
Asanto32 merged 2 commits into
mainfrom
103-add-stroke-model
Mar 18, 2026
Merged

103 task add Stroke model#120
Asanto32 merged 2 commits into
mainfrom
103-add-stroke-model

Conversation

@kimit0310
Copy link
Copy Markdown
Collaborator

Resolves #103

Summary

Adds a Stroke dataclass to models.py for Alphabet and DSYM tasks, following the LineSegment pattern for Trails. Updates GridCell to own a strokes: List[Stroke] list for cell-level feature aggregation.

Changes

Notes

  • cell_index and cell_label are intentionally absent from Stroke — the relationship is owned by GridCell

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.16%. Comparing base (bd58e18) to head (ccf853e).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #120      +/-   ##
==========================================
- Coverage   98.63%   98.16%   -0.47%     
==========================================
  Files          19       19              
  Lines        1097     1145      +48     
==========================================
+ Hits         1082     1124      +42     
- Misses         15       21       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kimit0310 kimit0310 marked this pull request as ready for review March 3, 2026 18:38
@kimit0310 kimit0310 requested review from Asanto32 and cgmaiorano March 3, 2026 18:38
Copy link
Copy Markdown
Collaborator

@Asanto32 Asanto32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor changs lgtm

Comment thread src/graphomotor/core/models.py Outdated
Comment thread src/graphomotor/core/models.py Outdated
Comment thread src/graphomotor/core/models.py Outdated
Comment thread src/graphomotor/core/models.py Outdated
Comment thread tests/unit/test_stroke.py Outdated
@Asanto32 Asanto32 merged commit d4a7571 into main Mar 18, 2026
26 checks passed
@Asanto32 Asanto32 deleted the 103-add-stroke-model branch March 18, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Task: Add Stroke model for Alphabet/DSYM tasks

2 participants